package com.wicket.okrbff.biz.service.dto.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.validation.constraints.NotNull;
import lombok.Data;
import java.util.Objects;

/**
 * @desc BffCurrentContTargetSubCycleBudgetDto
 * @使用场景
 */
@Data
public class BffCurrentContTargetSubCycleBudgetDto implements Serializable {

  /**
   * 被评对象目标周期ID
   */
  @ApiModelProperty("被评对象目标周期ID")
  private String evaObjTargetCycleId;

  /**
   * 周期ID
   */
  @ApiModelProperty("周期ID")
  private String cycleId;

  /**
   * 周期名称
   */
  @ApiModelProperty("周期名称")
  private String cycleStandardName;

  /**
   * 预算金额
   */
  @ApiModelProperty("预算金额")
  private Double budget;

  /**
   * 预算金额单位 TIMES:次 DOOR:门 PART:部 SET:套 INDIVIDUAL:个 YUAN:元 NNT:人 PIECE:篇 TERM:项 FEN:分 WAN_YUAN:万元 PERCENT:百分率 PORTION:份 %:%
   */
  @ApiModelProperty("预算金额单位")
  private String budgetUnit;

  /**
   * 来源预算金额占比
   */
  @ApiModelProperty("来源预算金额占比")
  private Double sourceBudgetFundsProp;

  /**
   * 来源预算金额占比单位
   */
  @ApiModelProperty("来源预算金额占比单位")
  private String sourceBudgetFundsPropUnit;

  /**
   * 目标周期预算金额占比
   */
  @ApiModelProperty("目标周期预算金额占比")
  private Double targetCycleBudgetFundsProp;

  /**
   * 目标周期预算金额占比单位
   */
  @ApiModelProperty("目标周期预算金额占比单位")
  private String targetCycleBudgetFundsPropUnit;
@Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      BffCurrentContTargetSubCycleBudgetDto that = (BffCurrentContTargetSubCycleBudgetDto) o;
      return  evaObjTargetCycleId == that.evaObjTargetCycleId&&cycleId == that.cycleId&&cycleStandardName == that.cycleStandardName&&budget == that.budget&&budgetUnit == that.budgetUnit&&sourceBudgetFundsProp == that.sourceBudgetFundsProp&&sourceBudgetFundsPropUnit == that.sourceBudgetFundsPropUnit&&targetCycleBudgetFundsProp == that.targetCycleBudgetFundsProp&&targetCycleBudgetFundsPropUnit == that.targetCycleBudgetFundsPropUnit;
    }
@Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), evaObjTargetCycleId,cycleId,cycleStandardName,budget,budgetUnit,sourceBudgetFundsProp,sourceBudgetFundsPropUnit,targetCycleBudgetFundsProp,targetCycleBudgetFundsPropUnit);
    }

}
